-- GENERATED SPELL FOR [Drywhisker Digger] --


function spell0_2574(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_2574', 616, 1)
end

function spell1_2574(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(8380,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2574', 542, 1)
end

function Sorts_2574(pUnit, Event)
local choix_sorts_2574 = math.random(0, 1)
if choix_sorts_2574 == 0 then
pUnit:RegisterEvent('spell0_2574', 1, 1)
end
if choix_sorts_2574 == 1 then
pUnit:RegisterEvent('spell1_2574', 1, 1)
end
end

function mob2574_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2574', math.random(1500, 3000), 1)
end

function mob2574_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2574_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2574_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2574, 1, 'mob2574_Action')
RegisterUnitEvent(2574, 2, 'mob2574_Leave')
RegisterUnitEvent(2574, 3, 'mob2574_Kill')
RegisterUnitEvent(2574, 4, 'mob2574_Die')
